package com.risk.zuul.feign;

import com.risk.login.dto.LoginUserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Desc
 * @Date 2018/7/2:下午11:35
 * @Author yzMa
 * @email 2641007740@qq.com
 */
@FeignClient(serviceId = "risk-login",name = "risk-login-feign")
@RequestMapping("/h5/login")
public interface LoginService {

    @GetMapping("/check/{loginToken}")
    LoginUserDto checkLoginByToken(@PathVariable("loginToken") String loginToken);

    @PostMapping("/update/{loginToken}/ttl")
    boolean updateLoginTokenTTL(@PathVariable("loginToken")String loginToken);
}
